package com.simulation.web.utils;

public enum TaskEnum {
    /**
     * 进行中
     */
    PROCESSING,
    /**
     * 已结束
     */
    CLOSED;
    public static TaskEnum getByName(String name) {
        for (TaskEnum taskEnum : TaskEnum.values()) {
            if (taskEnum.name().toLowerCase().equals(name.toLowerCase())) {
                return taskEnum;
            }
        }
        return null;
    }
}
